package com.tuanzi.loan.web.lazy.family;

import com.tuanzi.loan.business.service.family.StatNewCreditCardUvService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.family.StatNewCreditCardUvRequest;
import com.tuanzi.loan.vo.response.family.StatNewCreditCardUvResponse;
import org.springframework.data.domain.Page;

/**
 * User: liangZongXi
 * Create time: 19:37 2018/9/6
 * Description:
 */
public class StatNewCreditCardUvLazyDataModel extends BaseLazyDataModel<StatNewCreditCardUvRequest, StatNewCreditCardUvResponse> {

    private static final long serialVersionUID = 4173612858060027141L;

    private StatNewCreditCardUvService statNewCreditCardUvService = SpringContextHolder.getBean(StatNewCreditCardUvService.class);

    public StatNewCreditCardUvLazyDataModel(StatNewCreditCardUvRequest statNewCreditCardUvRequest) {
        super(statNewCreditCardUvRequest);
    }

    @Override
    protected Page<StatNewCreditCardUvResponse> doLoad(PageSearcher<StatNewCreditCardUvRequest> pageSearcher) {
        return statNewCreditCardUvService.list(pageSearcher);
    }
}
